package com.testdemo.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.testdemo.web.dao.QuestionTypeDao; 
import com.testdemo.web.vo.QuestionType;
@Service 
public class QusetionTypeServiceImpl implements QusetionTypeService{

    @Autowired  
    private QuestionTypeDao typeDao;   
	 
	@Override
	public List<QuestionType> listAll(String typename) { 
		return typeDao.list(typename);
	}

	@Override
	public List<QuestionType> listAll() {
		return typeDao.list(null);
	}

}
